
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>管理员登陆</title>
    {include file="common/header"}
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">

<div class="middle-box text-center loginscreen  animated fadeInDown">
    <div>
        <div>

            <h1 class="logo-name"><img style="width: 200px;height: 150px" src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2278508960,2457255424&fm=26&gp=0.jpg" alt=""></h1>

        </div>
        <form class="m-t" role="form" action="{:url('admin/sign/login')}" method="post">
            <div class="form-group">
                <input type="email" name = "email" class="form-control" autocomplete="off" placeholder="用户名" required="">
            </div>
            <div class="form-group">
                <input type="password" name = 'password' class="form-control" autocomplete="off" placeholder="密码" required="">
            </div>
            <div class="form-group">
                <input type="text" name = 'yzm' class="form-control" autocomplete="off" placeholder="请输入验证码" required="">
            </div>
            <div class="form-group">
                <img src="{:url('admin/Sign/captcha')}"  id="yzm" alt="验证码">
            </div>
            <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>
            <p class="text-muted text-center"> <a href="{:url('admin/Sign/los')}"><small>忘记密码了？</small></a> | <a href="register.html">注册一个新账号</a>
            </p>

        </form>
    </div>
</div>

<!-- 全局js -->
<script src="/static/H/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/H/js/bootstrap.min.js?v=3.3.6"></script>
<script>
    //点击验证码图片更换验证码,
    //点击验证码图片,对src属性重新赋值,实现刷新验证码
    $('#yzm').click(function () {
        var str = '{:url(\'admin/Sign/captcha\')}' + '?' +Math.random();
        $(this).attr('src',str)
    })
</script>

<script>

    var n = parseInt(prompt('输入数字求阶乘'));
    function f(n) {
        if (1 == n){
            return n =1
        }     return n*f(n-1);
    }

    console.log(f(n));
</script>


</body>

</html>